package jvmstack;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @ClassName NativeDemo
 * @Author ykx
 * @Date 2024/6/23 10:50
 * @Version 1.0
 */
public class NativeDemo {
    public void test() {
        AtomicInteger atomicInteger = new AtomicInteger(1);
        final int result = atomicInteger.getAndIncrement();
        System.out.println(result);
    }
}
